package com.greyu.ysj.service;

import java.util.List;

import com.greyu.ysj.entity.CbtIncome;
import com.greyu.ysj.model.ResultModel;

public interface CbtIncomeService {
	
	double selectTotalIncomeByuserId(int userId);
	
	double selectYesterdayIncomeByuserId(int userId);
	//save
	ResultModel save(CbtIncome cbtIncome);
	//根据存单Id获取当前可提收益
	CbtIncome getLeftIncomByInvestId(int investId);
	
	CbtIncome getIncomeByuserId(int userId);
	//获取单个存单昨日收益
	double selectYesterdayIncomeByInvestId(int investId);
	//获取单个用户所有存单的当天收益
	List<CbtIncome> selectTodayIncomeByuserId(Integer page, Integer rows, Integer userId);
	
	int totalPages(Integer userId,Integer rows);
	int countIncomeByuserId(int userId);
}
